package com.huayun.plugin.common;

import lombok.Getter;

@Getter
public enum RCode {
    GLOBAL_EXCEPTION(1500, ""),
    TOKEN_EXPIRE(1600, "Token已过期"),
    USER_NOT_FOUND(1601, "用户未找到"),
    INVALID_CREDENTIALS(1602, "无效的用户凭据"),
    NAME_PASSWORD_REPEAT(1603, "用户名与密码重复"),
    SUCCESS(200, "成功"),
    ERROR(500, "失败");

    private final long code;
    private final String message;

    RCode(long code, String message) {
        this.code = code;
        this.message = message;
    }
}
